#include "StdAfx.h"
#include "Randomizer.h"

Randomizer::Randomizer(void)
{
}

Randomizer::~Randomizer(void)
{
}

double Randomizer::nextDouble()
{
	return (nextInt()/(double)RAND_MAX)-.5;
}

int Randomizer::nextInt()
{
	return rand();
}

short Randomizer::nextShort()
{
	return nextDouble()*SHORT_MAX;
}